package com.mojiayi.learn.sentinel.api;

import com.alibaba.dubbo.config.annotation.Reference;
import com.mojiayi.learn.sentinel.stub.service.IUserProvider;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class DubboFactory {
    @Reference(version = "1.0.0", owner = "liguangri")
    private IUserProvider userProvider;

    @Bean
    public IUserProvider getUserProvider() {
        return this.userProvider;
    }
}
